{assign var="title" value="マイページ"}

<h2>{$title|escape}</h2>

{include file="../partials/messages.tpl"}

<h3>■投稿動画一覧</h3>
<table class="list" summary="list">
	<tr>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
		<th>投稿日時</th>
		<th>タイトル</th>
		<th>ステータス</th>
		<th>変換日時</th>
		<th>&nbsp;</th>
	</tr>

	{foreach from=$uploadList item=upload}
	<tr class="tc">
		<td>
		{if $upload.status == $smarty.const.C_MOVIE_STATUS_OK}
		<a href="/movie_edit/edit/{$upload.movie_id}">編集</a>
		{/if}
		</td>
		
		<td>
		{if $upload.status == $smarty.const.C_MOVIE_STATUS_OK}
		<img src="/movie/thumbnail/{$upload.movie_id}" alt="{$upload.title|escape}" />
		{/if}
		</td>
		
		<td>{$upload.create_date|dateformat:"Y/m/d H:i:s"}</td>
		
		<td>
			{if $upload.status == $smarty.const.C_MOVIE_STATUS_OK}
			<a href="/movie/play/{$upload.movie_id}">{$upload.title|escape}</a>
			{else}
			{$upload.title|escape}
			{/if}
		</td>
		
		<td>{$upload.status|movie_status_str}</td>
		<td>
			{if $upload.encode_date != null}
				{$upload.encode_date|dateformat:"Y/m/d H:i:s"}
			{/if}
		</td>
		
		<td>
			{if $upload.status == $smarty.const.C_MOVIE_STATUS_NOCONVERT}
			<a href="/mypage/convert/movie_id/{$upload.movie_id}">
			変換する<br />
			（デバッグのみ）
			</a>
			{/if}
		</td>
	</tr>
	{/foreach}
</table>